//
//  ZMJMPHeaderView.m
//  Yi_Fei
//
//  Created by yons on 16/11/9.
//  Copyright © 2016年 ZMJPersonal. All rights reserved.
//

#import "ZMJMPHeaderView.h"

@implementation ZMJMPHeaderView

- (instancetype)init{
    self = [super init];
    if (!self) {
        return nil;
    }
    [self createSubView];
    return  self;
}


-(void)createSubView
{
    _numberlabel = [[UILabel alloc] init];
    [_numberlabel sizeToFit];
    _numberlabel.textColor=[UIColor lightGrayColor];
    _numberlabel.font=[UIFont systemFontOfSize:16.0];
    _numberlabel.text=@" 商品数量:";
    [self addSubview:_numberlabel];
    [_numberlabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self).offset(10);
        make.centerY.mas_equalTo(self.mas_centerY);
        make.size.mas_equalTo(CGSizeMake(80, 20));
    }];
    
    _numLabel = [[UILabel alloc] init];
    [_numLabel sizeToFit];
    _numLabel.textColor=COLOR;
    _numLabel.font=[UIFont systemFontOfSize:16.0];
    [self addSubview:_numLabel];
    [_numLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(_numberlabel.mas_right);
        make.centerY.mas_equalTo(self.mas_centerY);
        make.size.mas_equalTo(CGSizeMake(40, 20));
    }];
    
    _nameLabel = [[UILabel alloc] init];
    [_nameLabel sizeToFit];
    _nameLabel.textColor=[UIColor blackColor];
    _nameLabel.font=[UIFont systemFontOfSize:18.0];
    _nameLabel.text=@" 商品清单";
    [self addSubview:_nameLabel];
    [_nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self).offset(120);
        make.centerY.mas_equalTo(self.mas_centerY);
        make.size.mas_equalTo(CGSizeMake(100, 20));
    }];
}




@end











